// 走法类
class Move {
    String pieceName;
    int toX, toY;
    Move(String pieceName, int toX, int toY) {
        this.pieceName = pieceName;
        this.toX = toX;
        this.toY = toY;
    }
    @Override
    public String toString() {
        return pieceName + " " + toX + " " + toY;
    }
}